package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 菜品
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-08-29
 */
@TableName("variety")
public class Variety extends Model<Variety> {

    private static final long serialVersionUID = 1L;

	@TableField("areaid")
	private Long areaid;
	public Long getAreaid() { return areaid; }
	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}
    /**
     * 菜品id
     */
	private Long id;
    /**
     * 菜名
     */
	private String vegetable;

	/**
	 * 创建时间
	 * @return
	 */
	@TableField("createtime")
	private Long createtime;


	public Long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getVegetable() {
		return vegetable;
	}

	public void setVegetable(String vegetable) {
		this.vegetable = vegetable;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Variety{" +
				"areaid=" + areaid +
				", id=" + id +
				", vegetable='" + vegetable + '\'' +
				", createtime=" + createtime +
				'}';
	}
}
